# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: team/kde <bribbers@disroot.org>

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-plasma
pkgname=aura-browser
pkgver=5.27.10
pkgrel=0
pkgdesc="Browser for a fully immersed Big Screen experience allowing you to navigate the world wide web using just your remote control"
url="https://invent.kde.org/plasma-bigscreen/aura-browser"
# armhf blocked by extra-cmake-modules
# s390x, ppc64le and riscv64 blocked by qt5-qtwebengine
arch="all !armhf !s390x !ppc64le !riscv64"
license="GPL-2.0-or-later"
depends="
	kirigami2
	qt5-qtvirtualkeyboard
	"
makedepends="
	extra-cmake-modules
	ki18n5-dev
	kirigami2-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	qt5-qtmultimedia-dev
	qt5-qtquickcontrols2-dev
	qt5-qtwebengine-dev
	samurai
	"
case "$pkgver" in
	*.90*) _rel=unstable;;
	*) _rel=stable;;
esac
_repo_url="https://invent.kde.org/plasma/aura-browser.git"
source="https://download.kde.org/$_rel/plasma/$pkgver/aura-browser-$pkgver.tar.xz"
options="!check" # No tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=MinSizeRel \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
c1846fe126a8f753fc7ff29547d401ccdc8aeab304901a85d8233176fc02875e849f3c2050605eba9ba3dc8ca5ac75802b21748652571e119da68f19007f2531  aura-browser-5.27.10.tar.xz
"
